package edu.gyc.hishiro.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    @RequestMapping({"/","/index"})
    public String index() {
        return "index";
    }

    @RequestMapping("/userInfo/userList1")
    @RequiresPermissions("userInfo:view")
    public String userinfo() {
        return "userInfo";
    }

    @RequestMapping("/userInfo/userAdd1")
    @RequiresPermissions("userInfo:add")//权限管理;
    public String userInfoAdd(){
        return "userInfoAdd";
    }

    /**
     * 用户删除;
     * @return
     */
    @RequestMapping("/userInfo/userDel1")
    @RequiresPermissions("userInfo:del")//权限管理;
    public String userDel(){
        return "userInfoDel";
    }
}
